Creating items within items
Overview
Many business scenario require us to create multiple tables that are linked to each other. For example - Customers table and Purchase Orders table etc.
Rapid Platform provides you with the ability to create an item for a table (say Purchase Order) from within another linked table (say Customers table). Therefore, while creating / viewing a customer's data in the Customers table, you could create a purchase order item from within the customer items context, and it will automatically be linked to the customer item.
Illustration
Imagine you are accounts manager. You are inspecting the list of various invoices received and entering details of payments made against each corresponding invoice.
You have two tables - Invoices and Payments.
Objective: You want to a record Payment item from within the Invoice item.
Follow the steps below for how to add a table in the context of another table:
-
Navigate to Designer > Tables > All Tables
-
Open your desired table. (In this case the desired table is invoices as we want to add Payments to this)
-
Click on the Design tab
-
Click on the + button on the tab strip to add a tab for you linked table (In this case we are adding a payments tab to the invoices table)
-
Select the Table dropdown and select the table you want nested in this table (In this illustration it is the Payments table)
[NOTE:] After selecting the table this should automatically fill in the Page Name and the Tab name. If not fill in the page name with exact table name and fill in the tab name with what you want to appear on the tab when viewing the item in Explorer -
Press Save
-
Click Launch in Explorer
-
Open an item > Press on the newly created tab > and create a linked item
Please refer the below video for illustration.
Related articles
How to link existing items of two different tables? (Use of Link Inheritance)